home *** CD-ROM | disk | FTP | other *** search
- { TransSkel demonstration: Minimal application}
-
- {This program does nothing but put up an Apple menu}
- { with desk accessories , and a File menu }
- { with a Quit item . The user can run DA 's until Quit is selected or command-Q is typed.}
-
- {The project should include this file , TransSkel.pas}
- { ( or a project built from TransSkel.pas ) , MacPasLib and MacTraps .}
-
- {27 June 1986 Paul DuBois}
- { 11 January 1987 Owen Hartnett }
- {╜hm Software Co. 163 Richard Drive, Tiverton, RI 02878 }
-
-
- PROGRAM miniSkel;
-
-
- USES
- TransSkelpas;
-
- VAR
- m : MenuHandle;
-
- PROCEDURE DoFileMenu (item : integer); { ignored - there's only quit }
-
- BEGIN
- SkelWhoa; { Tell SkelMain to quit }
- END;
-
- BEGIN
- Skelinit; { Initialize }
- SkelApple('', NIL); { Handle Desk Accessories }
- m := NewMenu(2, 'File'); { Create Menu }
- AppendMenu(m, 'Quit/Q');
- SkelMenu(m, @DoFileMenu, NIL); { Tell Transkel to handle it }
- SkelMain; { loop til quit selected }
- SkelClobber; { clean up }
- END.